
#ifndef __SETTINGS_H__
#define __SETTINGS_H__

class settings
{
public:
	void Init( CString const& strAppPath, CString const& strAppDataPath )
	{
		m_strAppPath = strAppPath;
		m_strAppDataPath = strAppDataPath;
	}


	CString get( CString const& name, CString const& section = L"iRing" )
	{
		WCHAR szIniPath[MAX_PATH] = {};
		PathAppend(szIniPath, m_strAppPath); //?
		PathAppend(szIniPath, L"settings.ini");
		
		WCHAR szValue[MAX_PATH] = {};
		GetPrivateProfileString(section, name, L"", szValue, MAX_PATH, szIniPath);
		return szValue;
	}

private:
	CString m_strAppPath;
	CString m_strAppDataPath;

};

#endif